from flow_sdk.client import FlowClient
from config import Config
client = FlowClient(Config.FATE_IP, Config.FATE_PORT, 'v1')


def get_history(limit=10, job_id=None):
    """
    获取历史信息
    :param limit:
    :param job_id:
    :return:
    """
    return  client.data.upload_history(limit=limit, job_id=job_id)